<?php /* Smarty version 2.6.18, created on 2016-11-30 14:06:21
         compiled from syllabus/m.syllabus.staffinfo.tpl.php */ ?>
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
<link href="mstatic/css/bootstrap.min.css"  type="text/css" rel="stylesheet">
<link href="mstatic/css/jquery-ui.css"  type="text/css" rel="stylesheet">
<link href="mstatic/css/index.css" type="text/css" rel="stylesheet">
<title>教师个人课程表</title>
</head>

<body>
<!--头部-->
<nav class="navbar navbar-default navbar-fixed-top  top" role="navigation">
  <div class="container-fluid">
    <div class="navbar-header" style=" width:100%;"> <a class="navbar-brand" href="javascript:history.go(-1);"  style=" width:100%;  padding-right:0px;"> <span class="glyphicon glyphicon-arrow-left white"></span> 
      <!--    <span class="glyphicon glyphicon-pause white" style="margin-left:2%;"></span>--> 
      <span class="white" style="margin-left:10%"><?php echo $this->_tpl_vars['staff_data']['staff_name']; ?>
教师个人课程表 <?php if ($this->_tpl_vars['set_data']['set_double'] == '2'): ?><a href="index.php?a=syllabus.info&staff_id=<?php echo $this->_tpl_vars['staff_data']['staff_id']; ?>
&syllabus_double=1"><?php if ($this->_tpl_vars['syllabus_double'] == '1'): ?>当前<?php endif; ?>单周</a> <a href="index.php?a=syllabus.info&staff_id=<?php echo $this->_tpl_vars['staff_data']['staff_id']; ?>
&syllabus_double=2"><?php if ($this->_tpl_vars['syllabus_double'] == '2'): ?>当前<?php endif; ?>双周</a><?php endif; ?></span> <span class="glyphicon glyphicon-user white" style="float:right"></span> </a> </div>
  </div>
  <!-- /.container-fluid --> 
</nav>
<!--头部 end--> 
<!--主体部分-->
<div class="container" style="margin-top:70px;">
  <div class="row" style="margin-top:10px;">
    <div class="col-sm-12 distance hierarchy" >
      <div class="form-group">
        <label for="" class="col-sm-2 control-label">教师名称:</label>
        <div class="col-sm-10">
          <input name="q" id="staff_name" type="text" class="form-control" value="" autocomplete="off" >
          <input name="staff_id" id="staff_id" type="hidden" class="form-control" value="">
        </div>
      </div>
    </div>
    <div class="col-xs-12 distance hierarchy2">
      <div class="form-group  text-center" style="padding-top:0px;">
	    <input name="a" type="hidden" class="form-control" value="syllabus.staffinfo">
        <button type="submit" class="btn btn-success absolutely ">搜索</button>
      </div>
    </div>
  </div>
  <div class="row row_margin"> 
    <!--   <h4 class="text-center">2012级高一二班单周课程表</h4>-->
    <table class="table table-bordered  text-center">
       <tr>
		 <td>节次</td>
		 <?php $_from = $this->_tpl_vars['week_lists']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['key'] => $this->_tpl_vars['value']):
?>
		 <td><?php echo $this->_tpl_vars['value']; ?>
</td>
		 <?php endforeach; endif; unset($_from); ?>
	  </tr>
	  <?php $_from = $this->_tpl_vars['out_am']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['key'] => $this->_tpl_vars['value']):
?>
	  <tr>
			 <td><?php echo $this->_tpl_vars['key']; ?>
</td>
			 <?php $_from = $this->_tpl_vars['value']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['k'] => $this->_tpl_vars['v']):
?>
			 <td>
				 <?php echo $this->_tpl_vars['v']['subject_name']; ?>
<br/><?php echo $this->_tpl_vars['v']['class_name']; ?>

			 </td>
			 <?php endforeach; endif; unset($_from); ?>
	 </tr>
	 <?php endforeach; endif; unset($_from); ?>
	  <tr>
			<td></td>
	  </tr>
	  <?php $_from = $this->_tpl_vars['out_pm']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['key'] => $this->_tpl_vars['value']):
?>
	  <tr>
			 <td><?php echo $this->_tpl_vars['key']; ?>
</td>
			 <?php $_from = $this->_tpl_vars['value']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['k'] => $this->_tpl_vars['v']):
?>
			 <td>
				 <?php echo $this->_tpl_vars['v']['subject_name']; ?>
<br/><?php echo $this->_tpl_vars['v']['class_name']; ?>

			 </td>
			 <?php endforeach; endif; unset($_from); ?>
	 </tr>
	 <?php endforeach; endif; unset($_from); ?>
    </table>
  </div>
  <!--row  end--> 
  
  <!--  <div class="row row_margin" > 
        <button type="button" class="btn btn-primary btn-lg btn-block btn-primary2">确定</button>
        </div>--> 
</div>
<!--container  end--> 
<!--主体部分  end--> 
<!--底部-->
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "m.index.footer.tpl.php", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?> 
<!--日历--> 
<script src="static/js/run_prettify.js"></script>
<script src="static/js/jquery.mockjax.js"></script>
<script src="static/js/bootstrap-typeahead.js"></script>
 <script>
		$(function() {
			function displayResult(item) {
				$("#staff_id").val(item.value);
			}
			$('#staff_name').typeahead({
        source: [
			<?php $_from = $this->_tpl_vars['staff_lists']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['key'] => $this->_tpl_vars['value']):
?>
            { id: <?php echo $this->_tpl_vars['value']['staff_id']; ?>
, name: '<?php echo $this->_tpl_vars['value']['staff_name']; ?>
' },
			<?php endforeach; endif; unset($_from); ?>
        ],

				onSelect: displayResult,
			});
		  
		});
</script>